import React, {Component} from 'react';
import { View, Text, StyleSheet, TouchableOpacity, StatusBar, ListView, Image, Platform} from 'react-native';
import FirstPage from './FirstPage';
import { Navigator } from 'react-native-deprecated-custom-components';


export default class Main extends Component{
    render(){
        return(
            <Navigator
                initialRoute={{
                    title: '推荐电影',
                    component: FirstPage
                }}
                configureScene={(route) => {
                    if (route.sceneConfig) {
                        return route.sceneConfig;
                    }
                    return Navigator.SceneConfigs.HorizontalSwipeJump;
                }}
                renderScene={(route, navigator) => {
                    let Component = route.component;
                    return <Component {...route.params} navigator={navigator} />
                }}  
            />
        )
    }
}


const styles = StyleSheet.create({
    
});
